package cn.tmpan.service;

import cn.tmpan.common.ServerResponse;
import cn.tmpan.entity.Member;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by erhuo on 2018/3/10.
 */
public interface IUserService {

    public ServerResponse<Member> getUserInfo(Integer uid);

    /**
     * 用户登陆
     * @param member
     * @return
     */
    public ServerResponse<Member> login(Member member);

    /**
     * 用户注册 用户名密码 昵称必填
     * @param member
     * @return
     */
    public ServerResponse<Member> reg(Member member);

    /**
     * 自动获取用户登陆状态
     * @param request
     * @return
     */
//    public Member getUserAuto(HttpServletRequest request);

    /**
     * 用户绑定手机
     * @param phone 手机
     * @param code 验证码
     * @param uid 用户id
     * @return
     */
    public ServerResponse bindPhone(String phone,String code,Integer uid);
}
